package com.huice.day11;

import org.testng.annotations.Test;

public class GetProductDetail01 extends Template{

	@Test
	public void getProductDetail01(){
		String id = getEnvironment("product_id");
		setPara(METHOD, "getProductDetail");
		setPara(PARA, "<product-detail-request><product-code>"+id+"</product-code><currency>CNY</currency><need-sale-info></need-sale-info></product-detail-request>");
		send();
		checkPoint.equals(getStatus(), "200", "返回状态码200");
		checkPoint.equals(xmlCheck().getElementText("//product-code"), id, "产品代码正确");
	}
}
